<?php
/**
 * Created by ephp
 * User: 22071
 * Date: 2019/6/15
 * Email: <zhendongdong@foxmail.com>
 */

namespace paper\http\response;



class RedirectResponse extends Response
{

    protected function output($data): string
    {
        //跳转参数 直接把跳转地址设置到header头数组等待稍后输出即可
        $this->header['location'] = $data;
        return '';
    }


    protected function contentType(): string
    {
        return Response::CONTENT_TYPE_HTML;
    }
}